package View;

import java.awt.Image;

/**
 *
 * @author elach_000
 */
public class BeingView {
        static public Image characterTexture;
        
        static public int characterWidth = 64;
        static public int characterHeight = 64;
        
        static public int[] GetUpperLeftXY(int tileIndex)
        {
            int tileY = tileIndex / (characterTexture.getWidth(null) / characterWidth);
            int tileX = tileIndex % (characterTexture.getWidth(null) / characterWidth);
            
            int[] posXY = {tileX * characterWidth,tileY * characterHeight};
            
            return posXY;
        }
}
